Release 10.1A: OpenEdge Data Management:
SQL Reference


UPDATE STATISTICS

Queries data tables and updates the following statistics:

Syntax

UPDATE ( [ TABLE | INDEX | [ ALL ] COLUMN ] STATISTICS  
[ AND ]) ... [ FOR table_name ] ; 

Examples

The following example shows default commands for table cardinality and data distribution for index component columns:

UPDATE STATISTICS FOR Customer; 

The following example shows commands for table cardinality only:

UPDATE TABLE STATISTICS FOR Customer; 

The following example shows commands for new index statistics:

UPDATE INDEX STATISTICS FOR Customer; 

The following example shows commands for updating column statistics for index columns only:

UPDATE COLUMN STATISTICS FOR Customer; 

The following example shows commands for updating statistics for all columns:

UPDATE ALL COLUMN STATISTICS FOR Customer; 

The following example shows commands to obtain table cardinality and new index statistics and column statistics for all columns:

UPDATE TABLE STATISTICS AND INDEX STATISTICS AND ALL COLUMN STATISTICS FOR 
Customer; 

Notes

Authorization

Must have DBA privilege, SELECT privilege, or ownership of table.

Related statements

None


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095